package com.taotao.manage.service;

import com.taotao.manage.mapper.ItemCatTreeMapper;
import com.taotao.manage.pojo.ItemCatTree;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;

@Service
public class ItemCatTreeService extends BaseService<ItemCatTree>{
    @Autowired
    private ItemCatTreeMapper itemCatTreeMapper;


    public List<ItemCatTree> queryItemCatTreeById(Long parent_id){
        ItemCatTree record = new ItemCatTree();
        record.setParentId(parent_id);
        List<ItemCatTree> list =  itemCatTreeMapper.select(record);
        return list;
    }
}
